package com.hdsxtech.smsoot_timer.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hdsxtech.smsoot_timer.common.annotation.Read;
import com.hdsxtech.smsoot_timer.common.annotation.Write;
import com.hdsxtech.smsoot_timer.entity.TestB;
import com.hdsxtech.smsoot_timer.mapper.TestBMapper;
import com.hdsxtech.smsoot_timer.service.TestBService;

@Service
@Transactional
public class TestBServiceImpl implements TestBService {

	@Autowired
	TestBMapper testBMapper;
	
	@Read
	@Override
	public List<TestB> queryAll() {
		return testBMapper.queryAll();
	}

	@Read
	@Override
	public void save(List<TestB> testbList) {
		for (TestB testB : testbList) {
			testBMapper.save(testB);
		}
		
	}
	
	@Read
	@Override
	public void update(List<TestB> testbList) {
		 
		for (TestB testB : testbList) {
			testBMapper.update(testB);
		}
	}

}
